public class PlayerModel
{
    private PlayerInfo _playerInfo = null;
    public PlayerInfo playerInfo
    {
        get { return _playerInfo; }
    }

    public void SetPlayerInfo(PlayerInfo player)
    {
        _playerInfo = player;
    }

    public void Init(NetworkManager networkManager)
    {
        networkManager.SetTcpDisconnectedEvent(OnDisconnected,true);
    }

    void OnDisconnected()
    {
        _playerInfo = null;
    }
}